package com.ruoyi.boat.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 波浪艇对象 t_boat
 *
 * @author ruoyi
 * @date 2023-07-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class Boat extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 编号
     */
    @Excel(name = "编号")
    private String code;

    /**
     * 型号
     */
    @Excel(name = "型号")
    private String model;

    /**
     * 北斗卡号
     */
    @Excel(name = "北斗卡号")
    private String card;

    /**
     * 使用年限
     */
    @Excel(name = "使用年限")
    private Integer lifeSpan;

    /**
     * 所属机构id
     */
    private Long deptId;

    /**
     * 所属机构
     */
    @Excels({
            @Excel(name = "所属机构", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "所属机构负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept dept;

    /**
     * 通信模式
     */
    @Excel(name = "通信模式", readConverterExp = "0=北斗二代,1=北斗三代,2=未知")
    private Integer bdMode;

    /**
     * 跑偏半径
     */
    @Excel(name = "跑偏半径")
    private Double radius;

    /**
     * 照片路径
     */
    private String img;

    /**
     * 流媒体地址
     */
    private String rtsp;

    /**
     * 运行状态
     */
    private Integer status;

    /**
     * 维护机构
     */
    @Excel(name = "维护机构")
    private String maintainOrg;

    /**
     * 下水日期
     */
    @Excel(name = "下水日期")
    private String launchDate;

}
